<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
</head>
<body>
<script>
	//改变对象内的属性内容
function Test(person) {
	person.age = 26;
	person = {
		name:"yyy",
		age:30
	};
	return person
}

const p1 = {
	name: "yck",
    age:30
};

const p2 = Test(p1);
console.log(p2);
//以下输出什么
/*
*typeof操作符返回一个字符串，表示未经计算的操作数的类型
* return 会结束一个函数并销毁它的作用域
* */
console.log(typeof undefined);
console.log(typeof true);
console.log(typeof null);
console.log(typeof true);
console.log(typeof 1);
console.log(typeof "1");
console.log(typeof Symbol("foo"));
console.log(console.log);
//隐式转换
console.log(1+'1');
console.log(true+true);

	function test(person) {
		//person = 2
		console.log(person);
	}
	const p3 = test(1);
	//console.log(p3)
	console.log(person)


</script>
</body>
</html>
